package cc.rengu.redp.common.uid.service;

import cc.rengu.redp.common.utils.DateUtil;

import java.time.LocalDateTime;

public class SeqSystemDefault implements BizUidService {
    @Override
    public Long startFrom() {
        return 0L;
    }

    @Override
    public Long poolSize() {
        return 10000L;
    }

    @Override
    public String combineElement(Long currSeq) {
        return DateUtil.formatFullTime(LocalDateTime.now()) + String.format("%05d", currSeq);
    }
}
